<form action="{$webDir}/admin/" method="post">
    <input type="hidden" name="mode" value="event" />
    <input type="hidden" name="inAdmin" value="1" />
    <input type="hidden" name="event" value="editPage" />
    <input type="hidden" name="id" value="{$id}" />
    <fieldset>
        <legend>{$pageEditForm}</legend>
        <table>
            <tr>
                <td>{$pageTitleLabel}</td>
                <td><input type="text" name="title" size="40" value="{$title|escape:'html'}" /></td>
            </tr>
            <tr>
                <td>{$pageURL}</td>
                <td><input type="text" name="url" size="40" value="{$url|escape:'html'}" /></td>
            </tr>
            <tr>
                <td>{$indexPage}</td>
                <td><input type="checkbox" name="index" value="1"{if $url == ''} checked="checked"{/if} /></td>
            </tr>
            <tr>
                <td colspan="2">
                    {$pageContent}<br />
                    <textarea cols="80" rows="15" name="content">{$content|escape:'html'}</textarea>
                </td>
            </tr>
            <tr>
                <td colspan="2"><input type="submit" value="{$save}" /></td>
            </tr>
        </table>
    </fieldset>
</form>
{include file='admin/wysiwyg.tpl'}